package com.pro.common.service.util;

import com.pro.framework.api.enums.EnumTimeUnit;
import com.pro.framework.api.util.DateUtils;
import com.pro.framework.api.util.inner.TimeDifference;

import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.Objects;
import java.util.stream.Collectors;

public class DateBusinessUtils {

    /**
     * 时间差 带翻译
     */
    public static String calculateDifference(LocalDateTime start, LocalDateTime end) {
        return DateUtils.format(DateUtils.calculateDifference(start, end), e -> I18nUtils.get(e.getNumLabel()));
    }

}
